package com.vision.sales.cl.data;

import com.google.gwt.core.client.GWT;
import com.google.gwt.editor.client.Editor.Path;
import com.sencha.gxt.core.client.ValueProvider;
import com.sencha.gxt.data.shared.LabelProvider;
import com.sencha.gxt.data.shared.ModelKeyProvider;
import com.sencha.gxt.data.shared.PropertyAccess;
import com.vision.sales.cm.db.data.Product;

/**
 * 
 * @author Mark
 *
 */
public interface ProductProperties extends PropertyAccess<Product> {
	
	public static ProductProperties INSTANCE = GWT.create(ProductProperties.class);
	
	@Path("id")
	ModelKeyProvider<Product> key();
	
	@Path("code")
	LabelProvider<Product> codeLabel();

	ValueProvider<Product, Long> id();
	ValueProvider<Product, String> code();
	ValueProvider<Product, String> name();
	ValueProvider<Product, String> description();
	
}